package com.ssy.lingxi.product.api.model.request.price;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 物料价格库 - 合同物料价格信息封装类
 * @author lxc
 * @date 2022/4/2
 * @version 2.0.0
 */
public class MaterielPriceRequest implements Serializable {

    /**
     * 货号
     */
    @NotEmpty(message = "物料编码不能为空")
    private String code;

    /**
     * 物料单价
     */
    @NotNull(message = "物料单价不能为空")
    private Double amount;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }
}
